<template>
  <!--  <i-frame :src="'http://localhost:9900/zhxxzhadmin/coreMail/mail/login'" />-->
  <!--  <i-frame :src="'http://localhost:9900/zhxxzhadmin/index'" />-->

  <!--  <i-frame :src="'http://10.100.37.9:9900/coremail/XT6/index.jsp?sid=BAwEBcMMfPDPXhzVNzNemyKJvcsawFRM'" />-->
  <!--  window.open("http://www.baidu.com/", "_blank");-->
  <!--  window.open(你的外部链接地址, '_blank');-->
</template>
<script>
import iFrame from "@/components/iFrame/index";
import {getUserProfile} from "@/api/system/user";
import {getBack, getEmail} from "@/api/module/zxm/searchNumber";
import {getToken} from "@/utils/auth";
export default {
  // name: "file",
  // components: { iFrame },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      mainurl:"123",

    };

  },
  created() {
    //this.getUser();
    this.rout();
  },
  methods: {
    rout(){
      this.loading = true;
      getEmail().then(response => {
        this.mainurl =response.data;
        window.open(this.mainurl, '_blank');
        this.$router.push('/index');
        window.open(this.mainurl, '_blank');
      });
    },

  },
};
</script>

